
Highcharts.setOptions({
	    lang:{
	        contextButtonTitle:"图表导出菜单",
	        decimalPoint:".",
	        downloadJPEG:"下载JPEG图片",
	        downloadPDF:"下载PDF文档",
	        downloadPNG:"下载PNG图片",
	        downloadSVG:"下载SVG矢量图",
	        drillUpText:"返回 {series.name}",
	        loading:"加载中",
	        months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],
	        noData:"没有数据",
	        numericSymbols: [ "千" , "兆" , "G" , "T" , "P" , "E"],
	        printChart:"打印图表",
	        resetZoom:"恢复缩放",
	        resetZoomTitle:"恢复图表",
	        shortMonths:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],
	        thousandsSep:",",
	        weekdays: ["星期一", "星期二", "星期三", "星期三", "星期四", "星期五", "星期六","星期天"]
	    }
	});
//series.addPoint(newPoint, false, true);   
//series1.addPoint(newPoint, true, true);  //只有最后线的 第二个参数设为true
function Highchart(selector,_option){
	var _this = this; //把this保存下来，以后用_this代替this，这样就不会被this弄晕了
	var defaults = {
		credits: {  
            enabled: false  
        }	 
	};
	this.option = $.extend( true,  {}, defaults, _option || {}); 
    this.obj = $(selector).highcharts(this.option);
    this.obj = $(selector).highcharts();
    this.getTarget = function (){
    	return _this.obj;
    }
}

